package com.example.hyw.szysteam.arithmetic;

import java.util.Random;

/**
 * Created by HYW on 2018/6/11.
 */

public class Operator {
    public String createOperator(){
        int i=0;
        String operator=null;
        Random random=new Random();
        i=random.nextInt(4);
        switch (i){
            case 0:
                operator="+";
                break;
            case 1:
                operator="-";
                break;
            case 2:
                operator="×";
                break;
            case 3:
                operator="÷";
                break;
            default:
                operator="+";
                break;
        }
        return operator;
    }
}
